<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员数据维护</title>
	<include file="Public:header" />
	<style type="text/css">
		.m-input{width:190px; border:1px solid #ccc; padding:2px;}
		.select{width:190px; border:1px solid #ccc; height:25px; padding:2px;}
	</style>
	<script type="text/javascript">
		function chkfrm()
		{			
			$('#form1').submit();
		}
	</script>
</head>
<body class="">
	<div class="demo-info space-out-10px">
		<div class="demo-tip icon-tip"></div>
		<div>会员数据维护</div>
	</div>
	<form id="form1" method="post" action="{:U('Member/data_edit_save')}">
		<div style="float:left;">
		<table class="space-out-10px">
		<tr>
		<td>用户名：</td><td><input type="text" id="username" name="username" value="{$mydata.username}" class="m-input" readonly="true" /></td>
		</tr>
		<tr>
		<td>域名：</td><td><input type="text" id="domain" name="domain" value="{$mydata.domain}" class="m-input" readonly="true" /></td>
		</tr>
		<tr>
		<td>独立域名：</td><td><input type="text" id="showinfo" name="showinfo" value="{$mydata.showinfo}" class="m-input" /></td>
		</tr>

		<tr>
		<td>新密码：</td><td><input type="password" id="newpwd" name="newpwd" class="m-input" />为空时，不修改原始密码</td>
		</tr>
		<tr>
		<td>姓名：</td><td><input type="text" id="truename" name="truename" value="{$mydata.truename}" class="m-input" />	</td>
		</tr>
		<tr>
		<td>性别：</td><td><input type="radio" name="sex" value="1"<if condition="$mydata['sex'] eq '1'"> checked</if> />男  <input type="radio" name="sex" value="0"<if condition="$mydata['sex'] eq '0'"> checked</if> />女</td>
		</tr>
		<tr>
		<td>联系地址：</td><td><input type="text" id="address" name="address" value="{$mydata.address}" class="m-input" /></td>
		</tr>
		<tr>
		<td>邮编：</td><td><input type="text" id="zipcode" name="zipcode" value="{$mydata.zipcode}" class="m-input" /></td>
		</tr>
		<php>$diyinfo=unserialize($mydata['diyinfo']);</php>
		<tr>
		<td>商品数量限制：</td><td><input type="text" id="diyinfo[goods]" name="diyinfo[goods]" value="{$diyinfo.goods}" class="m-input" /></td>
		</tr>
		<tr>
		<td>支付数量限制：</td><td><input type="text" id="diyinfo[payment]" name="diyinfo[payment]" value="{$diyinfo.payment}" class="m-input" /></td>
		</tr>
		</table>
		</div>
		<div style="float:left;">
		<table class="space-out-10px">
		<tr>
		<td>电话：</td><td><input type="text" id="telephone" name="telephone" value="{$mydata.telephone}" class="m-input" /></td>
		</tr>
		<tr>
		<td>邮箱：</td><td><input type="text" id="email" name="email" value="{$mydata.email}" class="m-input" /></td>
		</tr>
		<tr>
		<td>地区：</td><td><input type="radio" name="cardtype" value="idcard"<if condition="$mydata['cardtype'] eq 'idcard'"> checked</if> />国内  <input type="radio" name="cardtype" value="other"<if condition="$mydata['cardtype'] eq 'other'"> checked</if> />其他</td>
		</tr>
		<tr>
		<td>证件号码</td><td><input type="text" id="cardnum" name="cardnum" value="{$mydata.cardnum}" class="m-input" /></td>
		</tr>
		<tr>
		<td>证件图片：</td><td><input type="text" id="cardpicurl" name="cardpicurl" value="{$mydata.cardpicurl}" class="m-input" /><a href="javascript:;" class="easyui-linkbutton" iconCls="icon-up" onclick="open_upload_window('cardpicurl')">新上传</a></td>
		</tr>
		<tr>
		<td>级别：</td><td><input type="text" id="mlevel" name="mlevel" value="{$mydata.mlevel}" class="m-input" /></td>
		</tr>
		<tr>
		<td>积分：</td><td><input type="text" id="integral" name="integral" value="{$mydata.integral}" class="m-input" /></td>
		</tr>
		<tr>
		<td>注册时间：</td><td>{$mydata.regtime|date='Y-m-d h:i:s',###}</td>
		</tr>
		<tr>
		<td>注册IP：</td><td>{$mydata.regip}</td>
		</tr>
		<tr>
		<td>最后登陆：</td><td>{$mydata.logintime|date='Y-m-d h:i:s',###}</td>
		</tr>
		<tr>
		<td>登陆IP：</td><td>{$mydata.loginip}</td>
		</tr>
		<tr>
		<td>状态：</td><td><input type="radio" name="status_flg" value="Y"<if condition="$mydata['status_flg'] eq 'Y'"> checked</if> />正常  <input type="radio" name="status_flg" value="N"<if condition="$mydata['status_flg'] eq 'N'"> checked</if> />禁用</td>
		</tr>
		</table>
		</div>
		<div style="clear:both;">
		<table class="space-out-10px">
		<tr>
		<td>&nbsp;</td><td>
		<input type="hidden" id="id" name="id" value="{$mydata.id}" />
		<input type="hidden" id="password" name="password" value="{$mydata.password}" />
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon-save" onclick="chkfrm()">保存</a>
		<a href="{:U('Member/data_list')}" class="easyui-linkbutton" iconCls="icon-undo">取消</a>
		</td>
		</tr>
		</table>
		</div>
	</form>
	<include file="Public:upload" />
</body>
</html>
